/**
 * 
 */
package net.lazyandroid.namewars.view;

import net.lazyandroid.namewars.R;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.TextView;

/**
 * @author Shane
 *
 */
public class FighterInfoView extends View 
{
	private TextView lifeTxt, attackTxt,defendTxt, speedTxt,hitrateTxt ; 
	/**
	 * @param context
	 */
	public FighterInfoView(Context context) 
	{
		super(context);
		initFighterInfoView() ;
	}

	/**
	 * @param context
	 * @param attrs
	 */
	public FighterInfoView(Context context, AttributeSet attrs) 
	{
		super(context, attrs);
		initFighterInfoView() ;
	}

	/**
	 * @param context
	 * @param attrs
	 * @param defStyle
	 */
	public FighterInfoView(Context context, AttributeSet attrs, int defStyle) 
	{
		super(context, attrs, defStyle);
		initFighterInfoView() ;
	}
	
	
	private final void initFighterInfoView() 
	{
		lifeTxt = (TextView) findViewById(R.id.life_txt);
		attackTxt = (TextView) findViewById(R.id.attack_txt);
		defendTxt = (TextView) findViewById(R.id.defend_txt);
		speedTxt = (TextView) findViewById(R.id.speed_txt);
		hitrateTxt = (TextView) findViewById(R.id.hitrate_txt);
	}
	
	public void setLife(String life)
	{
		lifeTxt.setText(life);
	}
	
	public void setAttack(String attack)
	{
		attackTxt.setText(attack) ;
	}
	
	public void setDefend(String defend)
	{
		defendTxt.setText(defend);
	}
	
	public void setSpeed(String speed)
	{
		speedTxt.setText(speed);
	}
	
	public void setHitrate(String hitrate)
	{
		hitrateTxt.setText(hitrate);
	}
}
